package xdu.lz.stage1_basic.chapter4_threadException.trace;

public class Test2 {

    public void test(){
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        for (StackTraceElement element : stackTrace) {
            System.out.println(element.getClassName()+element.getMethodName()+element.getLineNumber());
        }
    }
}
